//
//  RequestManager.h
//  Libraries
//
//  Created by 侯伟 on 2018/10/11.
//  Copyright © 2018年 侯伟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RequestConfig.h"
#import "UploadFile.h"

NS_ASSUME_NONNULL_BEGIN

@interface RequestManager : NSObject


/**
 *  创建单例对象
 */
+ (instancetype)sharedInstance;

/**
 设置网络请求头部信息

 @param requestHeader -头部信息
 */
- (void)setRequestHeader:(NSDictionary<NSString*,NSString*> *)requestHeader;


/**
 *  通用
 *  网络请求
 */
- (void)requestWithURL:(NSString *)url method:(RequestMethod)method params:(NSDictionary *)params callback:(RequestResult)callback;

/**
 *  取消所有网络请求
 */
- (void)cancelAllOperations;

@end
NS_ASSUME_NONNULL_END
